<@override name="link">
<link href="${base}/resources/admin/css/plugins/iCheck/custom.css" rel="stylesheet">
</@override>
<@override name="body">
<body class="gray-bg">
<div class="col-sm-12">
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>添加公文类型</h5>
            <div class="ibox-tools">
                <a href="../apps/index.html" class="dropdown-toggle" title="返回列表">
                    <i class="fa fa-arrows"></i>
                </a>
            </div>
        </div>
        <div class="ibox-content">
            <form action="submit" method="post" class="form-horizontal">
                <div class="form-group">
                    <label for="" class="col-sm-3 control-label">
                        名称
                    </label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control" id="title" name="title"/>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label for="" class="col-sm-3 control-label">
                        说明
                    </label>
                    <div class="col-sm-8">
                        <textarea name="description" id="description" class="form-control" cols="30" rows="4"></textarea>
                    </div>
                </div>
                <div class="form-group">
                    <label for="" class="col-sm-3 control-label">
                        状态
                    </label>
                    <div class="col-sm-8">
                        <#list types as type>
                            <div class="radio i-checks col-sm-3">
                                <label>
                                    <input type="radio" name="type" <#if type.code==0> checked="checked"</#if>  value="${type.code}">
                                    ${type.message}
                                </label>
                            </div>
                        </#list>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label class="col-sm-3 control-label" for="">
                        监控人员
                    </label>
                    <div class="col-sm-6">
                        <div class="input-group">
                            <input type="text" class="form-control" id="superName" disabled="disabled">
                            <input type="hidden" id="departmentId"/>
                            <span class="input-group-btn">
                                <button type="button" class="btn btn-primary super">
                                    选择
                                 </button>
                            </span>
                        </div>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <label for="" class="col-sm-3 control-label">
                        使用人员
                    </label>
                    <div class="col-sm-6">
                        <div class="form-group">
                        <#list uses as use>
                            <div class="radio i-checks col-sm-3">
                                <label>
                                    <input type="radio" name="use" <#if use.code==0> checked="checked"</#if>  value="${use.code}">
                                ${use.message}
                                </label>
                            </div>
                    </#list>
                    </div>
                    <div class="hr-line-dashed"></div>
                        <div class="input-group col-sm-12">
                            <input type="text" placeholder="请选择人员" class="form-control" id="userName" disabled="disabled">
                            <span class="input-group-btn">
                                <button type="button" class="btn btn-primary user">
                                    选择
                                 </button>
                            </span>
                        </div>
                    <div class="input-group col-sm-12 hidden">
                        <input type="text" class="form-control" placeholder="请选择部门" disabled="disabled" id="departmentName">

                        <span class="input-group-btn">
                                <button type="button" class="btn btn-primary department">
                                    选择
                                 </button>
                            </span>
                    </div>
                        <div class="input-group col-sm-12 hidden">
                            <input type="text" class="form-control" placeholder="请选择职位" id="positionName" disabled="disabled">
                            <input type="hidden" />
                            <span class="input-group-btn">
                                    <button type="button" class="btn btn-primary position">
                                        选择
                                     </button>
                            </span>
                    </div>

                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="form-group">
                    <div class="col-sm-4 col-sm-offset-4 text-center">
                        <button class="btn btn-primary" type="submit">保存设置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</@override>
<@override name="script">
<script type="text/javascript" src="${base}/resources/admin/js/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/appsType.js"></script>
<script type="text/javascript">
    AppsType.submit();
    Common.checkbox();
</script>
</@override>
<@extends name="../base/main.html"/>